﻿<Page x:Class="hr_1.View.Show_employee"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:src="clr-namespace:hr_1"
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"
	Title="Show_employee">
    <Page.Resources>
        <src:HRDataContext x:Key="hrData"/>
    </Page.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="94*" />
            <RowDefinition Height="206*" />
        </Grid.RowDefinitions>
        <DataGrid Name ="dataGrid_show_emp" AutoGenerateColumns="False" Height="Auto" HorizontalAlignment="Left" Width="Auto" VerticalAlignment="Top" >
            <DataGrid.Columns>
                <DataGridTextColumn  Header="Имя" Binding="{Binding Firstname, Mode=OneWay}"/>
                <DataGridTextColumn Header="Фамилия" Binding="{Binding Lastname, Mode=OneWay}"/>
                <DataGridTextColumn Header="Должность" Binding="{Binding Position, Mode=OneWay}"/>
                <DataGridTextColumn Header="Отдел" Binding="{Binding Department, Mode=OneWay}"/>
            </DataGrid.Columns>
        </DataGrid>
        <Button Content="Редактировать" Margin="0,0,36,35" Height="24" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="88" Click="Edit_Click" Grid.Row="1"></Button>
    </Grid>
</Page>
